import request from '@/router/axios'

export function fetchRepairList(query) {
  return request({
    url: '/eims/eimsrepairconfig/page',
    method: 'get',
    params: query
  })
}

export function addRepairObj(obj) {
  return request({
    url: '/eims/eimsrepairconfig',
    method: 'post',
    data: obj
  })
}

export function getRepairObj(id) {
  return request({
    url: '/eims/eimsrepairconfig/' + id,
    method: 'get'
  })
}

export function delRepairObj(id) {
  return request({
    url: '/eims/eimsrepairconfig/' + id,
    method: 'delete'
  })
}

export function putRepairObj(obj) {
  return request({
    url: '/eims/eimsrepairconfig',
    method: 'put',
    data: obj
  })
}
